<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>  
<html>  
<head>  
  <title>Login Here</title>  
 	             
<link href="resources/css/style.css" rel="stylesheet" type="text/css" />
<style>
.error {
	color: #ff0000;
	font-style: bold;
	
}
</style>
</head>  
<body>  
<c:if test='${not empty param.error}'>  
  <font color='red'>  
    Login error. 
 
    Reason : ${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}  
  </font>  
</c:if>  
<form method='POST' action='<c:url value='/j_spring_security_check' />'>  



      
<table align="center"> 
			<tr height="40"></tr>                                 
			 <tr>              
	            <td class="user_td3">
	            <table>  
    <tr>  
      <td align='right'>Username</td>  
      <td><input type='text' name='j_username' /></td>  
    </tr>  
    <tr>  
      <td align='right'>Password</td>  
      <td><input type='password' name='j_password' /></td>  
    </tr>  
    <tr>  
      <td colspan='2' align='right'>  
        <button type="submit" class="style_button">
		<img width="80" src="resources/images/login.gif"  />
</button>
      </td>  
    </tr>  
  </table>  
	            </td></tr>
	            <tr height="20px"/>
	            
		       <tr><td class="user_td3"><a href="register" class="img_a"><img src="resources/images/reg2.png"  alt="Registration"  width="100" height="35"   border="0" ></img></a></td></tr>
		       <tr height="20px"/>
</table>  
</form>  
</body>  
</html>